public class Demo {
	public static void main(String args[])
	{
		Employee e=new Employee();
		Manager m=new Manager();
		e.addObserver(m);
		e.setSalary(1000);
		e.setSalary(2000);
	}

}
